package com.yixun.qfbao.api.service;

import com.yixun.qfbao.apidto.DeptPermissionBindDto;
import com.yixun.qfbao.apidto.SetDeptPermissionReqDto;
import com.yixun.qfbao.model.dto.DeptPermissionDto;

import java.util.List;
import java.util.Map;

/**
 * @Description 权限相关处理类
 * @Date 2020-10-22
 * @Author jhsong
 * @Computer Administrator
 */
public interface DataPermissionService {

    DeptPermissionBindDto getBindDeptPermission(DeptPermissionDto entity);

    void setDeptPermission(SetDeptPermissionReqDto entity);

    void setAgencyDeptPermission(SetDeptPermissionReqDto entity);

    void resetDeptPermission(Long belongsId);

    Map<String, List<Long>> getPartnerPermission(Long partnerId, String permissionType);

    void cleanCompanyCacheByPartner(Long partnerId);
}
